package com.tanhua.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("tb_analysis_by_day")
public class Analysis implements Serializable {

    private Long id;
    /**
     * 日期 record_date
     */
    @TableField(value = "record_date")
    private Date recordDate;
    /**
     * 新注册用户数 num_registered
     */
    @TableField(value = "num_registered")
    private Integer numRegistered = 0;
    /**
     * 活跃用户数 num_active
     */
    @TableField(value = "num_active")
    private Integer numActive = 0;
    /**
     * 登陆次数 num_login
     */
    @TableField(value = "num_login")
    private Integer numLogin = 0;
    /**
     * 次日留存用户数 num_retention1d
     */
    @TableField(value = "num_retention1d")
    private Integer numRetention1d = 0;

    @TableField(value = "created")
    private Date created;

    @TableField(value = "update")
    private Date update;

    /**
     * 30天活跃用户数 private、get\set
     */
    @TableField(exist = false)
    private Integer getNumActive30 = 0;

    public Integer getGetNumActive30() {
        return getNumActive30;
    }

    public void setGetNumActive30(Integer getNumActive30) {
        this.getNumActive30 = getNumActive30;
    }

    /**
     * 7天活跃用户数 private、get\set
     */
    @TableField(exist = false)
    private Integer getNumActive7 = 0;

    public Integer getGetNumActive7() {
        return getNumActive7;
    }

    public void setGetNumActive7(Integer getNumActive7) {
        this.getNumActive7 = getNumActive7;
    }



}